function relogin() {
	$('#login_content').fadeOut('slow', function() {
		$('#login_content').fadeIn("slow");
		//$('#login_content').html("<form method='post'> email: <input type='text' name='email' id='email' />password: <input type='password' name='password' id='password' /><input type='button' id='ajaxLogin' value='login' onClick='login()' class='submit' /></form>");		$('#login_content').html("<form method='post' action='#'>email: <input type='text' name='email' id='email' />password: <input type='password' name='password' id='password' /><input type='submit' id='login' name='login' value='login' class='submit' /></form>");
	 });
}
	
function setAvatar(img){
	$('.avatar').fadeOut('fast', function() {
		$('.avatar').fadeIn("slow");
		$('.avatar').html("<img class='avatar' alt='Immagine personale' src='" + img + "'/>");
	 });
} 


function setInfo(alias, description){
	$('.profileInfo li.alias').fadeOut('slow', function() {
		$('.profileInfo li.alias').html("<b>Alias:</b> " + alias);
		$('.profileInfo li.alias').fadeIn("slow");
	 });
	
	$('.profileDescription').fadeOut('slow', function() {
		$('.profileDescription').html(description);
		$('.profileDescription').fadeIn("slow");
	 });

} 

function printCard(card){
	$('#carte').fadeOut('fast', function() {
		var already =  $('#carte').html();
		var after = ', ' + card;
		$('#carte').fadeIn("fast");
		$('#carte').html(already + after);
	 });
	
} 

function showIp(){
	document.getElementById("ipaddress").style.display = "block";
}